You are here: About configuring the vault > About auditing vault activity > Creating an audit log database

Creating an audit log database

The audit log feature requires an existing external database in which to store the vault event information. By default, the Meridian FDA Module does not create this database automatically. The database must be created by a database administrator. Scripts for SQL Server and Oracle are installed by the Meridian Enterprise setup program for your convenience that will create the database and the necessary schema. The scripts must be run by a user with sufficient rights to perform the actions in the scripts.

Warning    If the subscription database already exists, the scripts will delete it first and then recreate it.

To create an audit log database in SQL Server:

  1. Copy the following script file from the Meridian Enterprise application server to the SQL Server host computer:
C:\Program Files\BC-Meridian\Program\BC Audit\BCAuditTrailDB.sql
  1. On the SQL Server host computer, navigate to the folder where you copied the files in step 1.
  2. Run the script using the sqlcmd command-line program and one of the following examples:

Note

sqlcmd -S <ServerName> -E -i BCAuditTrailDB.sql -v DatabaseName = "<AuditDatabaseName>"

Or to use different credentials than your own:

sqlcmd -S <ServerName> -U <UserName> -P <Password> -i BCAuditTrailDB.sql -v DatabaseName = "<AuditDatabaseName>"

To create an audit log database in Oracle:

  1. Copy the contents of the following folder on the Meridian Enterprise application server to the Oracle host computer:
C:\Program Files\BC-Meridian\Program\BC Audit
  1. On the Oracle host computer, navigate to the folder where you copied the files in step 1.
  2. Start SQL *Plus.
  3. Run the following command:

run @ORACreateTables.sql

Related concepts

About auditing vault activity

Related tasks

Configuring the audit log connection

Localizing the audit log database

Installing the audit log viewer

Related information

Audited actions